#!/bin/bash

web(){
    mkdir -p /var/log/supervisor
    echo 'uwsgi done'
    supervisord -n -c /app/supervisord_prd.conf
}
#worker(){
#    mkdir -p /app/logs/celery_logs
#    celery -A djangoCeleryTest worker  -c 20  -l info
#
#}
#beat(){
#    mkdir -p /app/logs/celery_logs
#    celery -A djangoCeleryTest beat -l info
#}
case "$1" in
web)
web
;;
#default)
#default
#;;
#config)
#config
#;;
*)
echo "Usage: $1 {web|default|config}"
;;
esac
echo "start running!"